package org.jeecg.modules.health_records.health_mar.service;

import org.jeecg.modules.health_records.health_mar.entity.HealthMarInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 用药记录表
 * @Author: jeecg-boot
 * @Date:   2025-07-02
 * @Version: V1.0
 */
public interface IHealthMarInfoService extends IService<HealthMarInfo> {
    /**按recordid查询**/
    List<HealthMarInfo> queryByRecordId(HealthMarInfo healthMarInfo);

    /**电子病历信息查询接口（查询时间最新的那条数据）--按recordid查询**/
    List<HealthMarInfo> queryElecRecord(HealthMarInfo healthMarInfo);
    /**新规则:查询当下时间往前12个月的就诊数据作为电子病历数据**/
    List<HealthMarInfo>  newQueryElecRecord(HealthMarInfo healthMarInfo);
    /**新规则：除去当下时间往前12个月的就诊数据，剩下的数据为既往病历数据**/
    List<HealthMarInfo>  newQueryPastRecord(HealthMarInfo healthMarInfo);
}
